﻿namespace CSharpPro.Properties._1028;

// IUserService.cs
using System.Collections.Generic;

public interface IUserService
{
    /// <summary>
    /// 用户注册
    /// </summary>
    /// <param name="username">用户名</param>
    /// <param name="password">密码</param>
    /// <param name="confirmPassword">确认密码</param>
    /// <returns>注册成功返回true，失败返回false，并输出提示信息</returns>
    bool Register(string username, string password, string confirmPassword);

    /// <summary>
    /// 用户登录
    /// </summary>
    /// <param name="username">用户名</param>
    /// <param name="password">密码</param>
    /// <returns>登录成功返回true，失败返回false，并输出提示信息</returns>
    bool Login(string username, string password);

    /// <summary>
    /// 启动主菜单流程
    /// </summary>
    void Start();
    /// <summary>
    /// 删除用户
    /// </summary>
    /// <param name="username">要删除的用户名</param>
    /// <returns>删除成功返回true，失败返回false</returns>
    bool DeleteUser(string username);
}